//**********************************************************************************
//GMCProj41.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: /2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: 
//***********************************************************************************




public class GMCProj41
{
      public static void main (String[] args)
   {
      final int MAX = 8;
   
      for(int lin =1; lin<=MAX; lin++)
      {
         int row;
         for(int spc = (MAX-lin); spc > 0; spc--)
            System.out.print("   ");
         for(row = 0; row < lin; row++)
            System.out.print(" " + (int) Math.pow(2,row)+ " ");
         for(int row2 = row-2; row2 >= 0; row2--)
            System.out.print(" " + (int) Math.pow(2,row2)+ " ");
         System.out.println();
         
      }
   }
}
